清空Qtablewiget 表格的内容 您所在的位置:网站首页 qt tablewidget清空所有行 清空Qtablewiget 表格的内容

清空Qtablewiget 表格的内容

2023-08-08 08:38| 来源: 网络整理| 查看: 265

 

void QTableWidget::clear () [slot]//清空掉表格内所有内容,包括标题头

Removes all items in the view. This will also remove all selections. The table dimensions stay the same.

 

void QTableWidget::clearContents () [slot]//这个清空所有内容不包括标题头

Removes all items not in the headers from the view. This will also remove all selections. The table dimensions stay the same.

 

void QTableWidget::removeColumn ( int column ) [slot]//这个是删除一列,而不是清空表格

Removes the column column and all its items from the table.

 

void QTableWidget::removeRow ( int row ) [slot]//这个是删除一行,不是清空一行

Removes the row row and all its items from the table.

 

 

 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有